package com.cgw.web.rent.action;

import java.util.List;

import com.cgw.common.base.BaseAction;
import com.cgw.dmplt.common.PageBean;
import com.cgw.dmplt.rent.dao.PayConfirmFlowDao;
import com.cgw.dmplt.rent.domain.PayConfirmFlow;

public class PayConfirmAction extends BaseAction {

	private PayConfirmFlow payConfirmFlow;
	private PageBean page;
	
	public PageBean getPage() {
		return page;
	}

	public void setPage(PageBean page) {
		this.page = page;
	}

	public String doList(){
		try {
			if (payConfirmFlow == null)
				payConfirmFlow = new PayConfirmFlow();
			PayConfirmFlowDao payDao = (PayConfirmFlowDao) getBean("payConfirmFlowDao");
			List<PayConfirmFlow> payConfirmFlowList = payDao.listPayConfirmFlow(payConfirmFlow);
//			getHttpServletRequest().setAttribute("payConfirmFlowList", payConfirmFlowList);
			Integer count = payDao.listPayConfirmFlowCount(payConfirmFlow);
			page = new PageBean(payConfirmFlowList, count, 1);
		} catch (Exception e) {
			log.error("查询交租流水列表出错！");
		}
		return SUCCESS;
	}

	public PayConfirmFlow getpayConfirmFlow() {
		return payConfirmFlow;
	}

	public void setpayConfirmFlow(PayConfirmFlow payConfirmFlow) {
		this.payConfirmFlow = payConfirmFlow;
	}

}
